//
//  CalendarEventCell.h
//  OfficeBook
//
//  Created by 孙晓奇 on 15/9/22.
//  Copyright © 2015年 sunny. All rights reserved.
//

#import <UIKit/UIKit.h>

extern CGFloat const CalendarCellPadding;
extern NSTimeInterval const DefaultCellDuration;

typedef NS_ENUM(NSInteger, CalendarCellStatusEnum) {
    CalendarCellStatusEnumCreate           = 0,
    CalendarCellStatusEnumSelected         = 1,
    CalendarEventStatusEnumUnSelected      = 2,
};


@class CalendarEvent;
@interface CalendarEventCell : UICollectionViewCell
@property (nonatomic, weak)   CalendarEvent *event;

//view
@property (nonatomic, strong) UIView    *bodyView;    // 时间轴蓝色部分
@property (nonatomic, strong) UIControl *leftDrag;    // 左侧拖拽区域
@property (nonatomic, strong) UIControl *rightDrag;   // 右侧拖拽区域

@property (nonatomic, strong) UILabel     *title;
@property (nonatomic, strong) UILabel     *subject;
@property (nonatomic, strong) UILabel     *location;
@property (nonatomic, strong) UILabel     *timeLabel;

//layout
@property (nonatomic) CGSize         collectionViewSize;
@property (nonatomic) NSTimeInterval defaultDuration;       //事件创建时默认时长
@property (nonatomic) CGFloat        defaultCenterY;        //cell初始Y(居中)

//methods
-(void)cellHidden:(BOOL)hidden;
- (NSDictionary *)titleAttributesHighlighted:(BOOL)highlighted;
- (NSDictionary *)subtitleAttributesHighlighted:(BOOL)highlighted;
@end
